const http = require("http");
// 引入自定义模块
const axios = require("axios");

http.createServer(function (req, res) {

  if (req.url !== "/favicon.ico") {
    axios.get();
    axios.post();
  }
  

  res.writeHead(200, {"Content-Type": "text/html;charset=utf-8"});
  res.write("你好 nodejs");
  res.end();
}).listen(8081);

console.log("Server running at http://127.0.0.1:8081/");